#ifndef CQLABEL_H
#define CQLABEL_H

#include <QObject>
#include <QPainter>
#include <QLabel>
#include <QPaintEvent>
#include <QImage>
#include <QPixmap>
class cQLabel : public QLabel
{
    Q_OBJECT
public:
    explicit cQLabel(QWidget *parent = 0);
signals:
private:
    QImage *image0;
public slots:
protected:
    void paintEvent(QPaintEvent *)
    {
        QPainter p(this);
        p.drawPixmap(0,0,this->x(),this->y(),QPixmap::fromImage(*image0).scaled(100,50));
    }
};

#endif // CQLABEL_H
